package cn.takujo.simple.elasticsearch.client;

/**
 * ES mapping 中字段类型
 * 
 * @author wzx
 * @date 2019年4月1日 下午5:05:29
 * @Description 项目:takujo-simple-elasticsearch-client
 */
public enum EsFieldType {

	TEXT("text"), KEYWORD("keyword"), LONG("long"), INTEGER("integer"), SHORT("short"), BYTE("byte"), DOUBLE(
			"double"), FLOAT("float"), HALF_FLOAT("half_float"), SCALED_FLOAT("scaled_float"), DATE("date"), BOOLEAN(
					"boolean"), BINARY("binary"), INTEGER_RANGE("integer_range"), FLOAT_RANGE(
							"float_range"), LONG_RANGE("long_range"), DOUBLE_RANGE("double_range"), DATE_RANGE(
									"date_range"), OBJECT("object"), NESTED("nested"), GEO_POINT(
											"geo_point"), GEO_SHAPE("geo_shape"), IP("ip"), COMPLETION(
													"completion"), TOKEN_COUNT(
															"token_count"), MURMUR3("murmur3"), ARRAY("type");

	private String value;

	private EsFieldType(String value) {
		this.value = value;
	}

	public String value() {
		return value;
	}

}
